package com.example.other.netty.pipehandtest;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

public class CInServerHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        System.out.println("C:" + msg);
        ctx.channel().writeAndFlush(msg);//写数据 才会执行ChannelOutboundHandlerAdapter的后续调用链
    }
}
